import React, { Component } from 'react'

export default class Hello extends Component {
  //事件绑定形式是箭头函数
  handler = () => {
    console.log('handlers', this)
  }
  render () {
    return (
      <div>
        <button onClick={this.handler}>箭头函数事件</button>
      </div>
    )
  }
}
